Send Message (Async)
Sends a new message to an existing chat and processes it in the background. Returns immediately with the assistant message ID. Poll GET /chats/:chatId/messages/:messageId and check `finishReason` to detect completion.
Usage
import { v0 } from 'v0'const result = await v0.messages.sendAsync({ chatId: 'chat_abc123', message: 'Hello, world!',})console.log(result)API Signature
Request
Path Parameters
The unique identifier of the chat.
Request Body
The prompt or instruction to send to the model.
System-level context for the chat, such as frameworks or development environment details.
Overrides for the model behavior.
Model to use for the generation.
Enables image generations to generate up to 5 images per version.
MCP server IDs to enable. When omitted, uses default enabled servers.
Files or assets to include with the message.
URL of the attachment.
Skills to force-attach to the message. Supports skills.sh (remote), user/team memory (memory), and project (project) skills. Maximum 3.
Discriminator: a skills.sh skill.
Skill ID from skills.sh.
An optional action. Use fix-with-v0 to trigger automatic error fixing — the message should contain the error context.
Response
ID of the assistant message that will receive the response. Poll GET /chats/:chatId/messages/:messageId and check finishReason for completion.
Send Message
Sends a new message to an existing chat. Blocks until the model response is complete and returns the message response.
Send Message (Streaming)
Sends a new message to an existing chat and returns a Server-Sent Events stream. Events include the initial assistant-message snapshot, content chunk deltas, final usage, and a closing message snapshot. The response is `text/event-stream`; each event is `data: <JSON>\n\n` where the JSON conforms to MessageStreamEvent.